#!/bin/bash
LOG_FILE="/var/log/nginx/access.log"
echo "Top 10 IPs accessing the server:"
awk '{print $1}' $LOG_FILE | sort | uniq -c | sort -nr | head -10
